package com.yiban.demo.Util;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.Date;

public class DateUtil {
    public static Date localDateTimeToDate(LocalDateTime localDateTime){
     return Date.from(LocalDateTime.now().toInstant(ZoneOffset.ofHours(8)));
    }
}
